/*
* Copyright 2002-2006 Peter Lin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*   http://ruleml-dev.sourceforge.net/
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* 
*/
using System;
using System.Collections;

namespace Creshendo.Util.Collections
{
    /// <author>  Peter Lin
    /// 
    /// Why make a map interface that looks identicle to java.util.org.jamocha.rete.util.Map?
    /// The reason is to make it easier to write an optimized HashMap, similar
    /// to what Mark Proctor did for Drools3. By having an interface, it makes
    /// it easier to wrap distributed data grid products like JCache and
    /// JavaSpaces.
    /// 
    /// </author>
    public interface IMap : IEnumerable //: System.Collections.IDictionary
    {
        object this[object key]{ get; set;}
        bool Empty { get; }
        bool ContainsKey(Object key);
        Object Get(Object key);
        void Put(Object arg0, Object arg1);
        Object RemoveWithReturn(Object key);
        void putAll(IMap methods);
        int Count{ get;}
        void Clear();
        ICollection Keys{ get;}
        ICollection Values { get;}
        void Remove(object key);
        //IEnumerator GetEnumerator();
    }
}